<div class="codetails view">
<h2><?php  __('Codetail');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('ComID'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['ComID']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('ComName'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['ComName']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('StartDate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['StartDate']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('EndDate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['EndDate']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Code'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Code']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('CodeY'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['CodeY']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Exch'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Exch']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Cat'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Cat']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Type'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Type']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('TimeStamp'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['TimeStamp']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('LinkedComID'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['LinkedComID']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Listed'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Listed']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('ISIN'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['ISIN']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('GICS'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['GICS']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('IndustryGroup'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['IndustryGroup']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Activit'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Activit']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Website'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Website']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Announce'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Announce']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('AnnRep'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['AnnRep']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('InvCtr'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['InvCtr']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Email']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Rating'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Rating']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('CoAddr'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['CoAddr']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('CoTel'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['CoTel']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('CoFax'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['CoFax']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regry'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['Regry']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('CoSec'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $codetail['Codetail']['CoSec']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Codetail', true), array('action' => 'edit', $codetail['Codetail']['ComID'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Codetail', true), array('action' => 'delete', $codetail['Codetail']['ComID']), null, sprintf(__('Are you sure you want to delete # %s?', true), $codetail['Codetail']['ComID'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Codetails', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Codetail', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Coevents', true), array('controller' => 'coevents', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Coevent', true), array('controller' => 'coevents', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Codexecs', true), array('controller' => 'codexecs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Codexec', true), array('controller' => 'codexecs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Codtrans', true), array('controller' => 'codtrans', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Codtran', true), array('controller' => 'codtrans', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Coevents');?></h3>
	<?php if (!empty($codetail['coevent'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('EventID'); ?></th>
		<th><?php __('ComID'); ?></th>
		<th><?php __('Event'); ?></th>
		<th><?php __('EventDate'); ?></th>
		<th><?php __('Position'); ?></th>
		<th><?php __('FileName'); ?></th>
		<th><?php __('TimeStamp'); ?></th>
		<th><?php __(' Declaration'); ?></th>
		<th><?php __(' FlagA'); ?></th>
		<th><?php __('Note'); ?></th>
		<th><?php __('EventDateFormat'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($codetail['coevent'] as $coevent):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $coevent['EventID'];?></td>
			<td><?php echo $coevent['ComID'];?></td>
			<td><?php echo $coevent['Event'];?></td>
			<td><?php echo $coevent['EventDate'];?></td>
			<td><?php echo $coevent['Position'];?></td>
			<td><?php echo $coevent['FileName'];?></td>
			<td><?php echo $coevent['TimeStamp'];?></td>
			<td><?php echo $coevent['_declaration'];?></td>
			<td><?php echo $coevent['_flagA'];?></td>
			<td><?php echo $coevent['Note'];?></td>
			<td><?php echo $coevent['EventDateFormat'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'coevents', 'action' => 'view', $coevent['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'coevents', 'action' => 'edit', $coevent['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'coevents', 'action' => 'delete', $coevent['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $coevent['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Coevent', true), array('controller' => 'coevents', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Codexecs');?></h3>
	<?php if (!empty($codetail['codexec'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('ComID'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('DIRref'); ?></th>
		<th><?php __('Title1'); ?></th>
		<th><?php __('Title2'); ?></th>
		<th><?php __('App'); ?></th>
		<th><?php __('Resig'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($codetail['codexec'] as $codexec):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $codexec['id'];?></td>
			<td><?php echo $codexec['ComID'];?></td>
			<td><?php echo $codexec['Name'];?></td>
			<td><?php echo $codexec['DIRref'];?></td>
			<td><?php echo $codexec['title1'];?></td>
			<td><?php echo $codexec['title2'];?></td>
			<td><?php echo $codexec['App'];?></td>
			<td><?php echo $codexec['Resig'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'codexecs', 'action' => 'view', $codexec['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'codexecs', 'action' => 'edit', $codexec['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'codexecs', 'action' => 'delete', $codexec['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $codexec['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Codexec', true), array('controller' => 'codexecs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Codtrans');?></h3>
	<?php if (!empty($codetail['codtran'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('ComID'); ?></th>
		<th><?php __('Date'); ?></th>
		<th><?php __('Company'); ?></th>
		<th><?php __('Code'); ?></th>
		<th><?php __('Director'); ?></th>
		<th><?php __('Transaction'); ?></th>
		<th><?php __('Number'); ?></th>
		<th><?php __('Price'); ?></th>
		<th><?php __('Value'); ?></th>
		<th><?php __('Holding'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($codetail['codtran'] as $codtran):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $codtran['id'];?></td>
			<td><?php echo $codtran['ComID'];?></td>
			<td><?php echo $codtran['Date'];?></td>
			<td><?php echo $codtran['Company'];?></td>
			<td><?php echo $codtran['Code'];?></td>
			<td><?php echo $codtran['Director'];?></td>
			<td><?php echo $codtran['Transaction'];?></td>
			<td><?php echo $codtran['Number'];?></td>
			<td><?php echo $codtran['Price'];?></td>
			<td><?php echo $codtran['Value'];?></td>
			<td><?php echo $codtran['Holding'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'codtrans', 'action' => 'view', $codtran['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'codtrans', 'action' => 'edit', $codtran['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'codtrans', 'action' => 'delete', $codtran['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $codtran['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Codtran', true), array('controller' => 'codtrans', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
